import java.util.Scanner

fun main() {
    val sc = Scanner(System.`in`)
    val t = sc.nextInt()
    for (i in 1..t) {
        val a = sc.nextBigInteger()
        val b = sc.nextBigInteger()
        println("Case $i:")
        print("$a + $b = ${a + b}")
        if (i != t) {
            println("\n")
        }
    }
}